<?= view('phm/highcharts/jsurl') ?>

<figure class="highcharts-figure">
    <div id="container1"></div>
    <p class="highcharts-description">A320</p>
</figure>

<script type="text/javascript">
    var chart = Highcharts.chart('container1',{
        chart: {
            type: 'column',
            zoomType: 'x'
        },
        title: {
            text: 'A320刹车温度曲线图'
        },
        yAxis: {
            min: 0,
            title: {
                text: '温度/摄氏度 (℃)'
            }
        },
        xAxis: {
            type: 'category',
            labels: {
                rotation: -45  // 设置轴标签旋转角度
            }
        },
        plotOptions: {
            column: {
                borderWidth: 0
            }
        },
        boost: {
            useGPUTranslations: true
        },
        series: [
            {turboThreshold:0,
            name: '1号刹车',
            data: <?php echo $break1; ?> ,},
            {turboThreshold:0,
                name: '2号刹车',
                data: <?php echo $break2; ?> ,},
            {turboThreshold:0,
                name: '3号刹车',
                data: <?php echo $break3; ?> ,},
            {turboThreshold:0,
                name: '4号刹车',
                data: <?php echo $break4; ?> ,},
        ]
    });
</script>